package com._520it.crm.mapper;

import com._520it.crm.domain.Recognizee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecognizeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Recognizee record);

    Recognizee selectByPrimaryKey(Long id);

    List<Recognizee> selectAll();

    int updateByPrimaryKey(Recognizee record);

    List<Recognizee> selectPage(@Param("current") int current,
                   @Param("size") int size,
                   @Param("name") String name,
                   @Param("nature") String nature,
                   @Param("antiLaunGrade") String antiLaunGrade,
                   @Param("papersType") String papersType,
                   @Param("papersNum") String papersNum,
                   @Param("address") String address,
                   @Param("tel") String tel);

    int selectPageCount(@Param("current") int current,
                                     @Param("size") int size,
                                     @Param("name") String name,
                                     @Param("nature") String nature,
                                     @Param("antiLaunGrade") String antiLaunGrade,
                                     @Param("papersType") String papersType,
                                     @Param("papersNum") String papersNum,
                                     @Param("address") String address,
                                     @Param("tel") String tel);
}